<template>
    <div>
        <div>{{msg}}</div>
        <!-- //动态改变数据 -->
        <SchoolN></SchoolN>
        //通过父组件给子组件绑定事件(用v-on:或者@)
        <StudentN></StudentN>
        //通过ref绑定事件
        <!-- <StudentN ref="student"></StudentN> -->
    </div>
</template>
<script>
    import StudentN from './compoents/StudentN'
    import SchoolN from './compoents/SchoolN';
    export default {
        name: 'App',
        components: {
            StudentN,
            SchoolN
        },
        data() {
            return {
                msg: '你'
            }
        },
        methods: {

        }

    }
</script>
<style>
</style>